package com.parkingspace.service;

import com.parkingspace.entity.Appraise;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 评价表 服务类
 * </p>
 *
 * @author Gapper
 * @since 2021-06-01
 */
public interface IAppraiseService extends IService<Appraise> {

	/**
	 * 新增评价 用户ID不用传
	 * @param token 传入token
	 * @param appraise 传入信息
	 * @return 返回Boolean
	 * @throws Exception
	 */
	Boolean insertAppraise (String token, Appraise appraise) throws Exception;

	/**
	 * 根据订单ID查询该订单的所有评价
	 * @param ordereid 传入订单ID
	 * @return 返回List
	 * @throws Exception
	 */
	List<Appraise> findByOrderId (Long ordereid) throws Exception;

}
